Refresh MRT admin schema; add env clone, bundle delete, org member/cert commands#405
Merged
Conversation
…s, org certs - Update OpenAPI spec from cloud-soak.mrt-soak.com (target clone, certificates, org members, bundle delete + bulk-delete endpoints) and regenerate types. - SDK: add cloneEnv, deleteBundle/bulkDeleteBundles, organization-member operations, certificate operations. - CLI: b2c mrt env clone, b2c mrt bundle delete, b2c mrt org member list/add/get/update/remove, b2c mrt org cert list/get/create/delete/restart-validation. - Docs and b2c-mrt skill updated; changesets included.
…from Drop the redundant --from flag on b2c mrt env clone. Every MrtCommand already has a base --environment / -e flag (with MRT_ENVIRONMENT and dw.json mrtEnvironment fallbacks) that selects the working environment; using it as the source for clone keeps the behavior consistent with the rest of the env commands. The positional argument is the new slug. Also reject identical source and destination slugs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/b2c-tooling-sdk/specs/mrt-api-v1.jsonfromcloud-soak.mrt-soak.comand regenerate types. New endpoints: target clone, organization certificates, organization members, bundle delete + bulk-delete.cloneEnv,deleteBundle/bulkDeleteBundles, fullorganization-memberandcertificatemodules.b2c mrt env clone— clone a target from a source target, optionally cloning redirects, env vars, and B2C target info; supports--certificate-id/--external-hostnamefor custom domains and--waitto poll until ready.b2c mrt bundle delete <id...>— single DELETE for one ID, bulk-delete for many; reports rejected bundles.b2c mrt org member list|add|get|update|remove.b2c mrt org cert list|get|create|delete|restart-validation.b2c-mrtskill updated. Changesets included for@salesforce/b2c-cli,@salesforce/b2c-tooling-sdk(minor) and@salesforce/b2c-agent-plugins(patch).Out of scope (note for follow-up): the new schema also exposes
bundle deleteandorg certtypes that could power richer monitoring/renewal workflows; this PR wraps each endpoint 1:1 only.Test plan
pnpm run typecheck:agentcleanpnpm -r run test:agent— 4,099 tests passing (SDK 1722, CLI 1211, DX-MCP 650, mrt-utilities 516)pnpm run lint:agentclean./cli mrt --help,./cli mrt env clone --help,./cli mrt org cert --help,./cli mrt org member --helpall show new commands and topicsb2c mrt env clone qa-copy --from staging --project <p> --clone-redirects --clone-env-vars --wait, thenb2c mrt env get qa-copyandb2c mrt env redirect list qa-copyb2c mrt bundle delete <id>(single) andb2c mrt bundle delete <id> <id> <id>(bulk)b2c mrt org cert create shop.example.com --org <org>, capture the validation record, runb2c mrt org cert getto confirm it persistsNotes
POST /target/{slug}/clone/response asAPITargetV2Clone(the request body schema). The API actually returns target-shaped data;cloneEnvcasts throughunknownrather than re-fetching to avoid a wasted round-trip.addOrgMember/updateOrgMemberre-fetch viagetOrgMemberso callers get a complete record (the POST/PATCH response schemas omitemail/first_name/last_name).